package com.ttg.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ttg.common.config.LocalDateTimeDeserializer;
import com.ttg.common.config.LocalDateTimeSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName(value = "tbl_app_coupon_vip_bind_merchant")
public class VipBindMerchant implements Serializable {
    /**
     * 会员绑定账户id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 会员编号
     */
    @TableField(value = "vip_id")
    private Long vipId;

    @TableField(value = "mct_no")
    private Long mctNo;
    /**
     * 商户id
     */
    @TableField(value = "mct_name")
    private String mctName;

    /**
     * 合计分值
     */
    @TableField(value = "total_score")
    private Integer totalScore;

    /**
     * 绑定时间
     */
    @TableField(value = "bind_time")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime bindTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime updateTime;

    /**
     * 营业执照号
     */
    @TableField(value = "business_license_no")
    private String businessLicenseNo;
}
